<template>
  <div id="father">
      <div class="header">
          <span @click="show1">基本信息</span>
          <span @click="show2">
              <el-badge :value="12" class="item">
                我的动态
              </el-badge>
          </span>
          <hr>
      </div>
      <div>
          <keep-alive>
           <router-view></router-view>
          </keep-alive>
      </div>
  </div>
</template>

<style lang="less">
#father {
    padding: 20px;
}
    .header {
        span {
            margin-left: 20px;
            &:hover {
                color: rgb(44, 179, 184);
                text-decoration: underline;
                cursor: pointer;
            }
        }
    }
</style>

<script>
export default {
    data() {
        return {
        }
    },
    methods: {
        show1(){
            this.$router.push({
                path:'/peopleMessage/message1'
            })
        },
        show2() {
            this.$router.push({
                path:'/peopleMessage/message2'
            })
        }
    }
}
</script>

<style>

</style>